Progress Bar Script

October 8, 2009 · 59 views · 0 comments

Progress Bar Script
taken by : Dedric Mauriac on Woodbridge (11, 3, 98)
blogHUD!

About

This little script shows a progress bar as floating text. Sending Inventory [||||||||||....................] 33% showProgress(float value, float maximum, string status) { float percent = 0; if(maximum != 0) percent = value / maximum; integer barCount = 50; integer bars = llFloor(percent * barCount); llSetText( status + "n[" + llGetSubString("||||||||||||||||||||||||||||||||||||||||||||||||||..................................................", barCount - bars, -1 - bars) + "] " + (string)llFloor(percent * 100) + "%" , , 1); } From Dedric Mauriac via bloghud.com